package main

import (
	"context"
	"fmt"
	"github.com/ethereum/go-ethereum/ethclient"
	"math/big"
)

const url = "http://localhost:8545"

func main() {
	client, _ := ethclient.Dial(url)
	block, _ := client.BlockByNumber(context.Background(), big.NewInt(0))
	fmt.Println("hash", block.Hash().Hex())

	b, _ := client.SuggestGasPrice(context.Background())
	fmt.Println("gas price", b)
}
